var STORAGE_KEY = '@s:key';

function cache_get(key) {
    let val = window.localStorage.getItem(STORAGE_KEY+key);
    return val ? JSON.parse(val):null;
}

function cache_set(key,value) {
    window.localStorage.setItem(STORAGE_KEY+key,JSON.stringify(value))
}
module.exports = {
    cache_get,
    cache_set
}